import {v4 as uuidv4} from "uuid"

// 生成usertempId
export function isUserTempId(){
    // 在本地存储 获取 userTempId
    let userTempId=localStorage.getItem("userTempId");
    if(userTempId){
        return userTempId
    }else{
        let newUserTempId=uuidv4();
        localStorage.setItem("userTempId",newUserTempId);
        return newUserTempId
    }
}